//
//  WebNewsViewController.m
//  MyMovie
//
//  Created by apple on 16/5/18.
//  Copyright © 2016年 ljp. All rights reserved.
//

#import "WebNewsViewController.h"

@interface WebNewsViewController ()

@end

@implementation WebNewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    [self.view addSubview:webView];
    //加载本地HTML文件
    //获取HTML文件
    NSString *filePath = [[NSBundle mainBundle] pathForResource:@"news" ofType:@"html"];
    NSString *HTMLString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
    [webView loadHTMLString:HTMLString baseURL:nil];
    //加载网址


}



@end
